<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">测试页面</div>

                <div class="panel-body">

                    <div id="count_id">
                        计数值：1
                    </div>

                    <div id="user_data"> </div>
                </div>
            </div>
        </div>
    </div>
    <script src="/js/jquery.min.js"></script>
    <script>
        $(function () {
            var count = 1;

            setInterval(function () {
                $.ajax({
                    type: "get",
                    url: '/user_status',
                    processData: false,
                    contentType: false,
                    success: function (res) {
                        $("#count_id").html("计数值：" + (++count));
                        if(res.status_code == "200"){
                            $("#user_data").html(JSON.stringify(res.data));
                        }
                        console.log(res)
                    }
                });
            }, 500)
        })
    </script>
</div>